import Layout from '@/views/layout/index'

// 合同变更申请单
const contractChangeApplicationRouter = {
    path: '/contractChangeApplication',
    component: Layout,
    name: 'contractChangeApplication',
    meta: {
        title: '合同变更申请单',
        icon: 'iconfont icon-contract-state-change'
    },
    redirect: "/contractChangeApplication/manage",
    children: [{
        path: 'manage',
        name: 'contractChangeApplicationManage',
        component: () => import('@/views/contractChangeApplication/manage'),
        meta: {
            title: '合同变更申请单',
            icon: 'iconfont icon-contract-state-change',
            api: ['contract_audit'],
            authority: ['list'],
        },
        checkedList: [],
        rights: [{
                value: 'list',
                label: '列表'
            },{
                value: 'edit',
                label: '编辑'
            }]
    },{
        path: 'contractChangeApplicationDetails',
        name: 'contractChangeApplicationDetails',
        component: () => import('@/views/contractChangeApplication/details'),
        hidden:true,
        meta: {
            title: '合同变更详情',
            api: ['contract_audit'],
            authority: ['details'],
        }
    }]
}

export default contractChangeApplicationRouter